KFbxExporter Class Reference

#include <kfbxexporter.h>
Inheritance diagram for KFbxExporter:
Inheritance graph
[legend]

List of all members.


Detailed Description

Class to export SDK objects into an FBX file.

Typical workflow for using the KFbxExporter class:

  1. create an exporter
  2. initialize it with a file name
  3. set numerous states, take information, defining how the exporter will behave
  4. call KFbxExporter::Export() with the entity to export

Definition at line 98 of file kfbxexporter.h.


Export Functions

virtual bool  Initialize (const char *pFileName, int pFileFormat=-1)
  Initialize object.
KFbxStreamOptions GetExportOptions ()
  Get file export options settings.
bool  Export (KFbxDocument *pDocument, KFbxStreamOptions *pStreamOptions=NULL)
  Export the document to the currently created file.
void  ReleaseExportOptions (KFbxStreamOptions *pStreamOptions)
  Release the file export options.

File Format

K_DEPRECATED void  SetFileFormat (int pFileFormat)
  Set the exported file format.
int  GetFileFormat ()
  Get the format of the exported file.
bool  IsFBX ()
  Return true if the file format is a recognized FBX format.
char const *const *  GetCurrentWritableVersions ()
  Get writable version for the current file format.
bool  SetFileExportVersion (KString pVersion, KFbxSceneRenamer::ERenamingMode pRenamingMode)
  Set file version for a given file format.
void  SetResamplingRate (double pResamplingRate)
  Set the resampling rate (only used when exporting to FBX5.3 and lower).
void  SetDefaultRenderResolution (KString pCamName, KString pResolutionMode, double pW, double pH)
  Set the default rendering resolution.
KFbxFileHeaderInfo GetFileHeaderInfo ()
  Get the complete file header information.

Member Function Documentation

virtual bool Initialize ( const char *  pFileName,
int  pFileFormat = -1  
) [virtual]

Initialize object.

Parameters:
pFileName  Name of file to access.
pFileFormat  file format identifier User does not need to specify it by default. if not specified, plugin will detect the file format according to file suffix automatically.
Returns:
true on success, false otherwise.
Remarks:
To identify the error that occurred, call KFbxIO::GetLastErrorID().

KFbxStreamOptions* GetExportOptions (  ) 

Get file export options settings.

Returns:
Pointer to file export options or NULL on failure.
Remarks:
Caller gets ownership of the returned structure.

bool Export ( KFbxDocument pDocument,
KFbxStreamOptions pStreamOptions = NULL  
)

Export the document to the currently created file.

Parameters:
pDocument  Document to export.
pStreamOptions  Pointer to file export options.
Returns:
true on success, false otherwise.
Remarks:
To identify the error, call KFbxIO::GetLastErrorID().

void ReleaseExportOptions ( KFbxStreamOptions pStreamOptions  ) 

Release the file export options.

Parameters:
pStreamOptions  Pointer to file export options.

K_DEPRECATED void SetFileFormat ( int  pFileFormat  ) 

Set the exported file format.

Parameters:
pFileFormat  File format identifier.

int GetFileFormat (  ) 

Get the format of the exported file.

Returns:
File format identifier.

bool IsFBX (  ) 

Return true if the file format is a recognized FBX format.

char const* const* GetCurrentWritableVersions (  ) 

Get writable version for the current file format.

Returns:
char**

bool SetFileExportVersion ( KString  pVersion,
KFbxSceneRenamer::ERenamingMode  pRenamingMode  
)

Set file version for a given file format.

Parameters:
pVersion  String description of the file format.
pRenamingMode  Renaming mode.
Returns:
true if mode is set correctly

void SetResamplingRate ( double  pResamplingRate  )  [inline]

Set the resampling rate (only used when exporting to FBX5.3 and lower).

Parameters:
pResamplingRate  resampling rate

Definition at line 179 of file kfbxexporter.h.

void SetDefaultRenderResolution ( KString  pCamName,
KString  pResolutionMode,
double  pW,
double  pH  
)

Set the default rendering resolution.

Parameters:
pCamName  name of the camera.
pResolutionMode  resolution mode.
pW  width.
pH  height.

KFbxFileHeaderInfo* GetFileHeaderInfo (  ) 

Get the complete file header information.

Returns:
valid pointer to the complete header information
KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter
KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter